#ifndef WINDOW_H
#define WINDOW_H

#include <QtOpenGL/qgl.h>
#include <qslider.h>
#include <qlayout.h>
#include <qcombobox.h>
#include "glwidget.h"

QT_BEGIN_NAMESPACE
class QSlider;
QT_END_NAMESPACE
class GLWidget;

class Window : public QWidget
{
  Q_OBJECT

public:
  Window(GLWidget *glWidget)
	{
    glwOrigin = glWidget;
		glwInitial = NULL;
		glwUltimate = NULL;
		glwCurrent = NULL;
	}

	Window(GLWidget *glWOrigin, GLWidget *glWInitial, 
				 GLWidget *glWUltimate, GLWidget *glWCurrent)
	{
    glwOrigin = glWOrigin;
		glwInitial = glWInitial;
		glwUltimate = glWUltimate;
		glwCurrent = glWCurrent;
	}
	void setMaxItem(unsigned int maxItrt, unsigned int maxCluster)
	{
		maxItemForItert = maxItrt;
		maxItemForCluster = maxCluster;
	}
  void generateWindow();

private:
  GLWidget *glwOrigin;
  GLWidget *glwInitial;
  GLWidget *glwUltimate;
  GLWidget *glwCurrent;
  QSlider *createSlider();
	QComboBox *itrt;
	QComboBox *cluster;
  QSlider *xSlider;
  QSlider *ySlider;
  QSlider *zSlider;
	unsigned int maxItemForItert;
	unsigned int maxItemForCluster;
};

#endif
